<?php

class Application_Model_UserKey extends Application_Model_DomainObject{
    
    protected $_id;
    
    protected $_uid;
    
    protected $_emailKey;
    
    protected $_emailTime;
    
    protected $_pwdKey;
    
    protected $_pwdTime;
    
    protected static function getDb(){
        return new Application_Model_DbTable_UserKey();
    }

    /**
     * 根据用户ID返回对应的帐户
     * @param int $userId
     * @return Application_Model_UserAccount 
     */
    public static function getByUserId($userId){
        return Application_Model_UserKey::getDb()->getByUserId($userId);
    }
}